#ifndef _MBPORT_HAL_H_
#define	_MBPORT_HAL_H_

#include "stdint.h"
#include "mbdef.h"

#ifdef   _MBPORT_MODULE_
#define  MB_EXT
#else
#define  MB_EXT  extern
#endif      


MB_EXT mbObjType mbxObj;
MB_EXT mbCmdBuffType mbxCmdBuff[16];

void mbxInit(mbModeType mbMode, uint32_t ulBaudRate, mbParityType eParity);
void mbxTimeoutHandle(void);

#undef MB_EXT

#endif	/* _MBPORT_HAL_H_ */

